﻿using Magicodes.ExporterAndImporter.Core;
using Magicodes.ExporterAndImporter.Excel;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PHMEE.Admin
{
    /// <summary>
    /// 维保建议导入DTO
    /// </summary>
    [ExcelImporter(IsLabelingError = true)]
    public class MainenanceAdviceImportDto
    {
        /// <summary>
        /// 故障编号
        /// </summary>
        [ImporterHeader(Name = "故障编号")]
        [Required]
        public string Code { get; set; }

        /// <summary>
        /// 故障类型
        /// </summary>
        [ImporterHeader(Name = "故障类型")]
        [Required]
        public string Type { get; set; }


        /// <summary>
        /// 故障类型英文
        /// </summary>
        [ImporterHeader(Name = "故障类型英文")]
        [Required]
        public string TypeEn { get; set; }

        /// <summary>
        /// 维保建议
        /// </summary>
        [ImporterHeader(Name = "维保建议")]
        [Required]
        public string Advice { get; set; }

        /// <summary>
        /// 维保建议英文
        /// </summary>
        [ImporterHeader(Name = "维保建议英文")]
        [Required]
        public string AdviceEn { get; set; }

    }
}
